#!/bin/bash

systemctl stop tb.service
sudo cp /usr/share/tb/conf/tb.conf /usr/share/tb/tb.conf.bak
sudo rpm -Uvh --force /opt/modules/tb/tb$(date "+%Y-%m-%d").rpm
sudo cp /usr/share/tb/tb.conf.bak /usr/share/tb/conf/tb.conf
systemctl daemon-reload
systemctl start tb.service
